package com.ruyuan.commodity.exception;

/**
 * 系统级别异常码枚举
 */
public enum ErrorMsgEnums {

    /**
     * 异常枚举
     */
    NO_PERMISSION("002", "无权限异常"),
    RESOURCE_NOT_FOUND("003", "资源未能找到"),
    INVALID_REQUEST_PARAMETER("004", "参数校验异常"),
    INVALID_CONFIG_PARAMETER("005", "错误的请求参数"),
    INVALID_CONTENT("006", "错误的配置参数"),
    NULL_POINTER("006", "空指针"),
    ;


    private String code;

    private String msg;

    ErrorMsgEnums(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * 无权限异常
     */
    // public final static String NO_PERMISSION = "002";
    /**
     * 资源未能找到
     */
    // public final static String RESOURCE_NOT_FOUND = "003";
    /**
     * 错误的请求参数
     */
    // public final static String INVALID_REQUEST_PARAMETER = "004";
    /**
     * 错误的配置参数
     */
    // public final static String INVALID_CONFIG_PARAMETER = "005";
    /**
     * 错误的配置参数
     */
    // public final static String INVALID_COTENT = "006";

    /**
     * 空指针
     */
    // public final static String NULL_POINTER = "007";
}
